{extend name="template/base" /}


{block name="content"}
	<div id="tab_demo" class="HuiTab mt-50">
	<!-- 选项卡 -->
	    <div class="tabBar clearfix">
	        <span>网站设置</span>
	        <span>优化推广</span>
	        <span>微信支付</span>
	        <span>支付宝</span>
	        <span>邮箱设置</span>
	    </div>
	<!-- 网站基础信息 -->
	    <div class="tabCon">
	        <form class="form form-horizontal" action="{:url('edit_proc')}" method="post" >
	            <input type="hidden" name="code" value="basics">
	            <input type="hidden" name="id" value="1">

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">网站状态</label>
	                <div class="skin-minimal">
	                  <div class="radio-box">
	                    <input type="radio" id="status-1" class="ara-radio" name="status" value="1" {$info.0.status? 'checked' : ''} />
	                    <label for="status-1">开启</label>
	                  </div>
	                  <div class="radio-box">
	                    <input type="radio" id="status-2" class="ara-radio" name="status" value="0" {$info.0.status? '' : 'checked'}>
	                    <label for="status-2">禁用</label>
	                  </div>
	                </div>
	            </div>

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">网站关闭时提示文字</label>
	                <div class="formControls col-xs-6 col-ms-6">
	                    <input name="prompt" type="text" placeholder="请输入网站关闭时的提示文字" value="{$info.0.config.prompt}" class="input-text radius group-title">
	                </div>
	            </div>

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">备案号</label>
	                <div class="formControls col-xs-6 col-ms-6">
	                    <input name="record" type="text" placeholder="请输入备案号" value="{$info.0.config.record}" class="input-text radius group-title">
	                </div>
	            </div>

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">联系邮箱</label>
	                <div class="formControls col-xs-6 col-ms-6">
	                    <input name="email" type="text" placeholder="请输入邮箱" value="{$info.0.config.email}" class="input-text radius group-title">
	                </div>
	            </div>

	            <div class="row cl">
	                <label class="form-label col-xs-4 col-sm-3">网站公告</label>
	                <div class="formControls col-xs-6 col-sm-6">
	                    <textarea class="textarea radius" placeholder="说点什么..." rows="" cols="" name="remark">{$info.0.config.remark}</textarea>
	                </div>
	            </div>


	            <div class="row cl">
	                <div class="formControls col-xs-6 col-xs-offset-3">
	                    <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
	                  <!--   <input name="" type="reset" class="btn btn-default radius" value="重置"> -->
	                </div>
	            </div>      
	        </form>
	    </div>
	    <!-- 优化推广 -->
	    <div class="tabCon">
	        <form class="form form-horizontal" action="{:url('edit_proc')}" method="post">
	            <input type="hidden" name="code" value="seo">
	            <input type="hidden" name="id" value="2">

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">推广状态</label>
	                <div class="skin-minimal">
	                  <div class="radio-box">
	                    <input type="radio" id="status-1" class="ara-radio" name="status" value="1" {$info.1.status? 'checked' : ''} />
	                    <label for="status-1">开启</label>
	                  </div>
	                  <div class="radio-box">
	                    <input type="radio" id="status-2" class="ara-radio" name="status" value="0" {$info.1.status? '' : 'checked'}>
	                    <label for="status-2">禁用</label>
	                  </div>
	                </div>
	            </div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">网站名</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="title" type="text" placeholder="请改个霸气的名字" value="{$info.1.config.title}" class="input-text radius group-title">
				    </div>
				</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">网站关键字</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="keyword" type="text" placeholder="请输网站关键字" value="{$info.1.config.keyword}" class="input-text radius group-title">
				    </div>
				</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">站长</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="author" type="text" placeholder="请输入站长名字" value="{$info.1.config.author}" class="input-text radius group-title">
				    </div>
				</div>

				<div class="row cl">
				    <label class="form-label col-xs-4 col-sm-3">网站描述</label>
				    <div class="formControls col-xs-6 col-sm-6">
				        <textarea class="textarea radius" placeholder="推广描述" rows="" cols="" name="describe">{$info.1.config.describe}</textarea>
				    </div>
				</div>

	            <div class="row cl">
	                <div class="formControls col-xs-6 col-xs-offset-3">
	                    <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
	                  <!--   <input name="" type="reset" class="btn btn-default radius" value="重置"> -->
	                </div>
	            </div>      
	        </form>

	    </div>
	    <!-- 微信支付 -->
	    <div class="tabCon">
	        <form class="form form-horizontal" action="{:url('edit_proc')}" method="post">
	            <input type="hidden" name="code" value="wxpay">
	            <input type="hidden" name="id" value="3">

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">使用状态</label>
	                <div class="skin-minimal">
	                  <div class="radio-box">
	                    <input type="radio" id="status-1" class="ara-radio" name="status" value="1" {$info.2.status? 'checked' : ''} />
	                    <label for="status-1">开启</label>
	                  </div>
	                  <div class="radio-box">
	                    <input type="radio" id="status-2" class="ara-radio" name="status" value="0" {$info.2.status? '' : 'checked'}>
	                    <label for="status-2">禁用</label>
	                  </div>
	                </div>
	            </div>

				<div class="row cl">
	          	    <label class="form-label col-xs-3 col-ms-3">APPID</label>
	          	    <div class="formControls col-xs-6 col-ms-6">
	          	        <input name="appid" type="text" placeholder="请输入绑定支付的公众号APPID" value="{$info.2.config.appid}" class="input-text radius group-title">
	          	    </div>
	          	</div>

	          	<div class="row cl">
	          	    <label class="form-label col-xs-3 col-ms-3">APPSECRET</label>
	          	    <div class="formControls col-xs-6 col-ms-6">
	          	        <input name="appsecret" type="text" placeholder="请输入绑定支付的公众号APPSECRET" value="{$info.2.config.appsecret}" class="input-text radius group-title">
	          	    </div>
	          	</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">商户号(MCHID)</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="mchid" type="text" placeholder="请输入MCHID" value="{$info.2.config.mchid}" class="input-text radius group-title">
				        <small>开户邮件中可查看</small>
				    </div>
				</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">商户支付密钥(KEY)</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="mchkey" type="text" placeholder="请输入商户支付密钥" value="{$info.2.config.mchkey}" class="input-text radius group-title">
				    </div>
				</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">支付授权目录</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="directory" type="text" placeholder="请输入支付授权目录" value="http://{$_SERVER.HTTP_HOST}/admin/wxpay/" class="input-text radius group-title" readonly>
				        <small>请在微信公众平台 -> 微信支付 -> 开发配置页面，支付授权目录设置成此URL地址。</small>
				    </div>
				</div>

	            <div class="row cl">
	                <div class="formControls col-xs-6 col-xs-offset-3">
	                    <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
	                  <!--   <input name="" type="reset" class="btn btn-default radius" value="重置"> -->
	                </div>
	            </div>      
	        </form>
	    </div>
	    <!-- 支付宝支付 -->
	    <div class="tabCon">
	        <form class="form form-horizontal" action="{:url('edit_proc')}" method="post">
	            <input type="hidden" name="code" value="alipay">
	            <input type="hidden" name="id" value="4">

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">使用状态</label>
	                <div class="skin-minimal">
	                  <div class="radio-box">
	                    <input type="radio" id="status-1" class="ara-radio" name="status" value="1" {$info.3.status? 'checked' : ''} />
	                    <label for="status-1">开启</label>
	                  </div>
	                  <div class="radio-box">
	                    <input type="radio" id="status-2" class="ara-radio" name="status" value="0" {$info.3.status? '' : 'checked'}>
	                    <label for="status-2">禁用</label>
	                  </div>
	                </div>
	            </div>

				<div class="row cl">
	          	    <label class="form-label col-xs-3 col-ms-3">收款支付宝账号</label>
	          	    <div class="formControls col-xs-6 col-ms-6">
	          	        <input name="aliaccounts" type="text" placeholder="请输入收款支付宝账号" value="{$info.3.config.aliaccounts}" class="input-text radius group-title">
	          	    </div>
	          	</div>

	          	<div class="row cl">
	          	    <label class="form-label col-xs-3 col-ms-3">合作者身份(PID)</label>
	          	    <div class="formControls col-xs-6 col-ms-6">
	          	        <input name="alipid" type="text" placeholder="请输入合作者身份(PID)" value="{$info.3.config.alipid}" class="input-text radius group-title">
	          	    </div>
	          	</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">安全校验码(KEY)</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="alikey" type="text" placeholder="请输入安全校验码(KEY)" value="{$info.3.config.alikey}" class="input-text radius group-title">
				    </div>
				</div>

	            <div class="row cl">
	                <div class="formControls col-xs-6 col-xs-offset-3">
	                    <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
	                  <!--   <input name="" type="reset" class="btn btn-default radius" value="重置"> -->
	                </div>
	            </div>      
	        </form>
	    </div>
	    <!-- 邮箱设置 -->
	    <div class="tabCon">
	        <form class="form form-horizontal" action="{:url('edit_proc')}" method="post">
	            <input type="hidden" name="code" value="email">
	            <input type="hidden" name="id" value="5">

	            <div class="row cl">
	                <label class="form-label col-xs-3 col-ms-3">使用状态</label>
	                <div class="skin-minimal">
	                  <div class="radio-box">
	                    <input type="radio" id="status-1" class="ara-radio" name="status" value="1" {$info.4.status? 'checked' : ''} />
	                    <label for="status-1">开启</label>
	                  </div>
	                  <div class="radio-box">
	                    <input type="radio" id="status-2" class="ara-radio" name="status" value="0" {$info.4.status? '' : 'checked'}>
	                    <label for="status-2">禁用</label>
	                  </div>
	                </div>
	            </div>
	          	
	          	<div class="row cl">
	          	    <label class="form-label col-xs-3 col-ms-3">SMTP服务器</label>
	          	    <div class="formControls col-xs-6 col-ms-6">
	          	        <input name="smtpserver" type="text" placeholder="请输入SMTP服务器" value="{$info.4.config.smtpserver}" class="input-text radius group-title">
	          	    </div>
	          	</div>

	          	<div class="row cl">
	          	    <label class="form-label col-xs-3 col-ms-3">邮箱账号</label>
	          	    <div class="formControls col-xs-6 col-ms-6">
	          	        <input name="sendemail" type="text" placeholder="请输入邮箱账号" value="{$info.4.config.sendemail}" class="input-text radius group-title">
	          	    </div>
	          	</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">邮箱密码</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="emailpassword" type="text" placeholder="请输入邮箱密码" value="{$info.4.config.emailpassword}" class="input-text radius group-title">
				    </div>
				</div>

				<div class="row cl">
				    <label class="form-label col-xs-3 col-ms-3">发件人名称</label>
				    <div class="formControls col-xs-6 col-ms-6">
				        <input name="addresser" type="text" placeholder="请输入发件人名称" value="{$info.4.config.addresser}" class="input-text radius group-title">
				    </div>
				</div>


	            <div class="row cl">
	                <div class="formControls col-xs-6 col-xs-offset-3">
	                    <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
	                  <!--   <input name="" type="reset" class="btn btn-default radius" value="重置"> -->
	                </div>
	            </div>      
	        </form>
	    </div>
	</div>
{/block}



{block name="script"}
	<script type="text/javascript" src="__AJS__/system/index.js"></script>
{/block}